package com.zy.batiya.domain;

/**
 * 翻页实体对象
 * */
public class Pager<T> {
	
	// 返回结果对象
	private T t;
	// 总条数
	private Integer total;
	// 总页数
	private Integer totalpage;
	// 每页大小
	private Integer size;
	// 当前页
	private Integer pagenow;
	// 排序列
	private String orderCol;
	// 升降序
	private String order;

	public Pager(){}

	public Pager(T t, Integer total, Integer totalpage, Integer size,
			Integer pagenow) {
		super();
		this.t = t;
		this.total = total;
		this.totalpage = totalpage;
		this.size = size;
		this.pagenow = pagenow;
	}

	public Pager(Integer total, Integer totalpage, Integer size, Integer pagenow) {
		super();
		this.total = total;
		this.totalpage = totalpage;
		this.size = size;
		this.pagenow = pagenow;
	}

	public T getT() {
		return t;
	}

	public void setT(T t) {
		this.t = t;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Integer getTotalpage() {
		return totalpage;
	}

	public void setTotalpage(Integer totalpage) {
		this.totalpage = totalpage;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public Integer getPagenow() {
		return pagenow;
	}

	public void setPagenow(Integer pagenow) {
		this.pagenow = pagenow;
	}

	public String getOrderCol() {
		return orderCol;
	}

	public void setOrderCol(String orderCol) {
		this.orderCol = orderCol;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}
}
